﻿<%@ Page Title="" Language="C#" StylesheetTheme="AdminTheme" MasterPageFile="~/Backend/mtpAdmin.master" AutoEventWireup="true" CodeBehind="ArticleList.aspx.cs" Inherits="HPortal.Backend.ArticleList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="dvTitleContent"> 

    Quản lý bài viết :: Danh sách bài viết</div>
    <table class="MainTable">
    <tr>
        <td >
            Chuyên mục:
        </td>
        <td>
            <asp:DropDownList ID="cboChannelList" runat="server" Width="200px" 
                AutoPostBack="True" 
                onselectedindexchanged="cboChannelList_SelectedIndexChanged">
            </asp:DropDownList>
        </td>
    </tr>
        <tr>
        <td >
            Khối tin:
        </td>
        <td>
            <asp:DropDownList ID="cboPanelList" runat="server" Width="200px" 
                AutoPostBack="True" 
                onselectedindexchanged="cboPanelList_SelectedIndexChanged">
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
    <td colspan="2">
    <fieldset>
    <legend>Danh sách bài viết trên khối tin</legend>

    <asp:GridView ID="grvArticlelList" runat="server" AutoGenerateColumns="False" 
            SkinID="tGridview">
        <Columns>
            <asp:BoundField DataField="Title" HeaderText="Tên bài viết" />
            <asp:TemplateField>
            <ItemTemplate>
            <%# this.WriteArticleImage(DataBinder.Eval(Container, "DataItem.TypeImage"),(int)DataBinder.Eval(Container, "DataItem.ArticleID"),"Components/ArticleDetail",70) %>
            </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="Head" HeaderText="Tóm tắt" />
            <asp:BoundField DataField="PublishedTime" HeaderText="Thời gian đăng" />
            <asp:BoundField DataField="Status" HeaderText="Trạng thái" />
            <asp:HyperLinkField DataNavigateUrlFields="ArticleID" 
                DataNavigateUrlFormatString="ArticleEdit.aspx?ArticleID={0}" Text="Sửa bài" />
        </Columns>
    </asp:GridView>
        </fieldset>
    </td>
    </tr>
    </table>
</asp:Content>
